﻿using Framework.SqlSugar.Entity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.Database.Model;

/// <summary>
/// 系统用户扩展机构表
/// </summary>
[SugarTable(null, "系统用户扩展机构表")]
public partial class SysUserExtOrg : EntityBaseId
{
	/// <summary>
	/// 用户Id
	/// </summary>
	[SugarColumn(ColumnDescription = "用户Id")]
	public long UserId { get; set; }

	/// <summary>
	/// 用户
	/// </summary>
	[Newtonsoft.Json.JsonIgnore]
	[System.Text.Json.Serialization.JsonIgnore]
	[Navigate(NavigateType.OneToOne, nameof(UserId))]
	public SysUser SysUser { get; set; }

	/// <summary>
	/// 机构Id
	/// </summary>
	[SugarColumn(ColumnDescription = "机构Id")]
	public long OrgId { get; set; }

	/// <summary>
	/// 机构
	/// </summary>
	[Newtonsoft.Json.JsonIgnore]
	[System.Text.Json.Serialization.JsonIgnore]
	[Navigate(NavigateType.OneToOne, nameof(OrgId))]
	public SysOrg SysOrg { get; set; }
}
